//
//  CalendarView.h
//  DemoCalendar
//
//  Created by Linh NGUYEN on 1/15/13.
//  Copyright (c) 2013 Mobioneer Ltd. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol CalendarViewDelegate;
@interface CalendarView : UIView {
    NSCalendar *cal;
	
	NSDateComponents *compA;
	
	NSDateComponents *currentHighLightDateComp;
	
	NSInteger currentDay;
	NSInteger currentMonth;
	
	NSArray	 * _dayNames;
	NSArray  * _monthNames;
	
	UIButton *btnDay;
	
	UILabel *lblDay;
	NSInteger globWeekDay;
	UIImageView* buttonImage;
}

@property(nonatomic, strong)NSString* strCalDate;
@property(nonatomic, strong)NSString* strShoeInfoDate;
@property(nonatomic, weak) IBOutlet UIView* contentView;
@property(nonatomic, weak) IBOutlet UIButton *btnNext;
@property(nonatomic, weak) IBOutlet UIButton *btnPrevious;
@property(nonatomic, weak) IBOutlet UILabel* lblMonth;
@property(nonatomic, weak) IBOutlet UILabel* lblSun;
@property(nonatomic, weak) IBOutlet IBOutlet UILabel* lblMon;
@property(nonatomic, weak) IBOutlet IBOutlet UILabel* lblTue;
@property(nonatomic, weak) IBOutlet IBOutlet UILabel* lblWed;
@property(nonatomic, weak) IBOutlet IBOutlet UILabel* lblThu;
@property(nonatomic, weak) IBOutlet IBOutlet UILabel* lblFri;
@property(nonatomic, weak) IBOutlet IBOutlet UILabel* lblSat;
@property(nonatomic, weak) id<CalendarViewDelegate> delegate;

- (IBAction)nextMonth:(id)sender;
- (IBAction)preMonth:(id)sender;
- (void)drawMonth;
- (void)dayClicked:(id)sender;
- (BOOL)isCurrentDate;
- (void)showMode;

@end

@protocol CalendarViewDelegate <NSObject>

- (void) calendarView:(CalendarView*)calendarView didSelectDay:(NSDate*)date;

@end